#include"viz.h"
#include<opencv2/opencv.hpp>

using namespace cv;

void viz(const char* img_file, const char* save_path, std::vector<Bboxcv> result)
{
    cv::Mat img = cv::imread(img_file);
    for (std::vector<Bboxcv>::iterator iter = result.begin(); iter != result.end(); iter++)
    {
        rectangle(img, iter->rect, Scalar(0, 0, 255));
    }
    cv::imwrite(save_path, img);
}
